package com.hzhq.contract.bean.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @author hzhq
 * @create 2021/4/8 10:16 下午
 * @email hzhq1255@163.com
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document("contract_type")
public class ContractType {

    public static final String TYPE_ID_FIELD = "_id";
    public static final String TYPE_CODE_FIELD = "type_code";
    public static final String TYPE_NAME_FIELD = "type_name";
    public static final String DELETED_FIELD = "deleted";

    @Id
    private ObjectId typeId;
    @ApiModelProperty(value = "合同种类编号")
    @Field(TYPE_CODE_FIELD)
    private Integer typeCode;
    @ApiModelProperty(value = "种类名")
    @Field(TYPE_NAME_FIELD)
    private String typeName;
    @ApiModelProperty(value = "删除")
    @Field(DELETED_FIELD)
    private Integer deleted;


}
